<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html>
<head>
    <title>我的项目</title>
    <script src="<c:url value="/components/modernizr/js/modernizr.custom.js"/>"></script>
    <!--必要样式-->
    <link rel="stylesheet" type="text/css" href="<c:url value="/components/modernizr/css/component.css"/>" />
</head>
<body>

    <div class="container">

        <c:if test="${!empty project }">
            <div class="panel panel-info">
                <div class="panel-heading">项目介绍</div>
                <div class="panel-body">
                    <div class="row">
                    
                        <div class="col-md-2">
                            <abbr title="小区名">小区名:</abbr>${project.communityName}</div>
                        <div class="col-md-2">
                            <abbr title="门牌号">门牌号:</abbr>${project.communityNum}</div>
                        <div class="col-md-2">
                            <abbr title="合同号">合同号:</abbr>${project.contractNum}</div>

                    </div>

                    <input type="hidden" id="projectID" value="${project.projectID}">
                    
                </div>
            </div>


            <div class="main">
                <ul class="cbp_tmtimeline">

                    <c:forEach var="vo" items="${voList}">
                        <li>
                            <time class="cbp_tmtime" datetime="<fmt:formatDate value="${vo.createTime}" pattern="dd/MM/yyyy HH:mm"/>">
                                <span><fmt:formatDate value="${vo.createTime}" type="date"/></span>
                                <span><fmt:formatDate value="${vo.createTime}" pattern="HH:mm"/></span>
                            </time>
                            <div class="cbp_tmicon cbp_tmicon-mail"></div>
                            <div class="cbp_tmlabel">
                            
                                <h3>${createTime}${vo.userName}<span class="label label-danger">${vo.roleName}</span></h3>
                                <p>${vo.progressInfo}</p>
                                <div class="row">
                                    <c:forEach var="fileUrl" items="${vo.fileUrls}">
                                        <div class="col-xs-6 col-md-3">
                                            <a href="#" class="thumbnail">
                                                <img class="media-object img-thumbnail" src="<%=basePath%>${fileUrl}" alt="..."  >
                                            </a>
                                        </div>
                                    </c:forEach>
                                </div>

                            </div>
                        </li>
                    </c:forEach>

                </ul>
            </div>
        </c:if>
    </div>


</body>
</html>
